package com.app.model;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * Created with IntelliJ IDEA.
 * User: cnprinces
 * Date: 13-1-21
 * Time: 下午4:31
 * To change this template use File | Settings | File Templates.
 */

/**
 * 客户
 */
@Entity
@Table(name = "ClientManager")
public class ClientManager implements Serializable {
    @Id
    @GenericGenerator(name = "ClientManagerGenerator", strategy = "native") //这个是hibernate的注解
    @GeneratedValue(generator = "ClientManagerGenerator") //使用uuid的生成策略
    private Integer id;
    /**
     * 客户名
     */
    private String clientName;

    /**
     * 联系电话
     */
    private String clientTel;

    /**
     * 客户性别
     */
    private String clientSex;

    /**
     *出生日期
     */
    private String clientBirthdate;

    /**
     * 日期类型
     */
    private String clientBirthdateType;

    /**
     * 客户邮箱
     */
    private String clientEmail;

    /**
     * 客户QQ
     */
    private String clientQQ;

    /**
     * 客户地址
     */
    private String clientAddr;

    /**
     * 入库时间
     */
    private Date createDate;

    /**
     * 采集人
     */
    private String createUserId;
    /**
     * 采集人
     */
    private String createUserName;

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public void setId(Integer id){
               this.id = id;
    }

    public Integer getId(){
        return this.id;
    }

    public String getClientName() {
        return clientName;
    }

    public void setClientName(String clientName) {
        this.clientName = clientName;
    }

    public String getClientTel() {
        return clientTel;
    }

    public void setClientTel(String clientTel) {
        this.clientTel = clientTel;
    }

    public String getClientSex() {
        return clientSex;
    }

    public void setClientSex(String clientSex) {
        this.clientSex = clientSex;
    }

    public String getClientBirthdate() {
        return clientBirthdate;
    }

    public void setClientBirthdate(String clientBirthdate) {
        this.clientBirthdate = clientBirthdate;
    }

    public String getClientBirthdateType() {
        return clientBirthdateType;
    }

    public void setClientBirthdateType(String clientBirthdateType) {
        this.clientBirthdateType = clientBirthdateType;
    }

    public String getClientEmail() {
        return clientEmail;
    }

    public void setClientEmail(String clientEmail) {
        this.clientEmail = clientEmail;
    }

    public String getClientQQ() {
        return clientQQ;
    }

    public void setClientQQ(String clientQQ) {
        this.clientQQ = clientQQ;
    }

    public String getClientAddr() {
        return clientAddr;
    }

    public void setClientAddr(String clientAddr) {
        this.clientAddr = clientAddr;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }
}
